package com.mspbots.cw.amqp.model;

import com.fasterxml.jackson.databind.JsonNode;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Table;

import java.time.LocalDateTime;

/**
 * @author billb
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Table("tenant_user")
public class TenantUser {

    @Id
    private Long id;
    private Integer tenantId;
    private Long cwUid;
    private Long departmentId;
    private String identifier;
    private String firstname;
    private String lastname;
    private String email;
    private String licenseClass;
    private Long tenantRoleId;
    private LocalDateTime updateTime;
    private LocalDateTime syncTime;
    private JsonNode extend;
    private JsonNode skills;
    private JsonNode teamNames;

}
